package com.asyf.consumer;

import com.asyf.common.config.CommonConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

//**匹配当前包和子包的类，*匹配当前包下的类
@SpringBootApplication
@EnableDiscoveryClient  //开启nacos的服务发现
@EnableFeignClients
@EnableSwagger2
//@ComponentScan(basePackages = {"com.asyf.common.service.**"})
@Import({CommonConfig.class})
public class DemoConsumerApplication {

    public static void main(String[] args) {
        SpringApplication.run(DemoConsumerApplication.class, args);
        System.out.println("http://localhost:8090/consumer/doc.html");
    }

}
